package com.tarena.lbs.business.dao.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.PageInfo;
import com.tarena.lbs.business.pojo.po.BusinessPO;
import com.tarena.lbs.business.pojo.po.StorePO;
import com.tarena.lbs.business.pojo.query.StoreQuery;
import com.tarena.lbs.business.pojo.vo.StoreVO;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface StoreRepository {

    PageInfo<StorePO> pageStoreList(StoreQuery query);

    List<StorePO> queryStoresByAreaAndBusiness(List<Long> cityIdList, Integer businessId);

    List<StorePO> getStores();

    void insertStore(StorePO storePO);

    BusinessPO getBusinessById(Integer businessId);

    List<StoreVO> getNearbyStores(String longitude, String latitude);
}
